/**
 * 
 */
package com.morningstar.qs.api.basic.common.data;

/**
 * @author rzeng
 * @deprecated
 *
 */
public class TickerUnit {
		private ExchangeDataServiceType type;
		private int exchangeId;
		private SecurityType secType;
		private String securityId;
		private String performanceId;
		private String region;
		private String symbol;		
		private String subsCode;
		
		// only for permission check
		private boolean hasSubMarket;
		private int subMarket;
		
		public TickerUnit() {
		}
		
		public ExchangeDataServiceType getType() {
			return this.type;
		}
		public void setType(ExchangeDataServiceType type) {
			this.type = type;
		}
		public int getExchangeId() {
			return this.exchangeId;
		}
		public void setExchangeId(int exchangeId) {
			this.exchangeId = exchangeId;
		}
		public SecurityType getSecType() {
			return this.secType;
		}
		public void setSecType(SecurityType secType) {
			this.secType = secType;
		}
		public String getSecurityId() {
			return this.securityId;
		}
		public void setSecurityId(String securityId) {
			this.securityId = securityId;
		}
		public String getPerformanceId() {
			return this.performanceId;
		}
		public void setPerformanceId(String performanceId) {
			this.performanceId = performanceId;
		}
		public String getRegion() {
			return this.region;
		}
		public void setRegion(String region) {
			this.region = region;
		}
		public String getSymbol() {
			return this.symbol;
		}
		public void setSymbol(String symbol) {
			this.symbol = symbol;
		}
		public String getSubsCode() {
			return this.subsCode;
		}
		public void setSubsCode(String subsCode) {
			this.subsCode = subsCode;
		}

		public void setHasSubMarket(boolean hasSubMarket) {
			this.hasSubMarket = hasSubMarket;
		}

		public boolean isHasSubMarket() {
			return hasSubMarket;
		}

		public void setSubMarket(int subMarket) {
			this.subMarket = subMarket;
		}

		public int getSubMarket() {
			return subMarket;
		}

		@Override
		public String toString() {
			return "TickerUnit [type=" + this.type + ", exchangeId="
					+ this.exchangeId + ", secType=" + this.secType
					+ ", symbol=" + this.symbol + ", subsCode=" + this.subsCode
					+ ", region=" + this.region + ", performanceId="
					+ this.performanceId + ", securityId=" + this.securityId
					+ ", hasSubMarket=" + this.hasSubMarket + ", subMarket="
					+ this.subMarket + "]";
		}
}
